﻿#region Header

// Written by Tobias Lekman, 2008. For more information and contact details, see http://www.lekman.com.
// 
// File released under Microsoft Public License (Ms-PL). For full details see http://www.microsoft.com/opensource/licenses.mspx
// 
// Conditions and Limitations
// 
// (A) No Trademark License- This license does not grant you rights to use any contributors' name, logo, or trademarks.
// 
// (B) If you bring a patent claim against any contributor over patents that you claim are infringed by the software, your patent license from such contributor to the software ends automatically.
// 
// (C) If you distribute any portion of the software, you must retain all copyright, patent, trademark, and attribution notices that are present in the software.
// 
// (D) If you distribute any portion of the software in source code form, you may do so only under this license by including a complete copy of this license with your distribution. If you distribute any portion of the software in compiled or object code form, you may only do so under a license that complies with this license.
// 
// (E) The software is licensed "as-is." You bear the risk of using it. The contributors give no express warranties, guarantees or conditions. You may have additional consumer rights under your local laws which this license cannot change. To the extent permitted under your local laws, the contributors exclude the implied warranties of merchantability, fitness for a particular purpose and non-infringement. 

#endregion

namespace CodePlex.Lekman.SharePoint.Testing.Examples
{
    /// <summary>
    /// Sample class showing how to set the <see cref="SharePointTestFixture.Site"/> and <see cref="SharePointTestFixture.Web"/> objects by retrieving a <see cref="SharePoint"/> site by wild card URL. This is useful for multiple farm scenarios where you have a development farm, test farm, stage farm and live farm. In this scenario, we will be able to bind against http://projectname.development.company.com, http://projectname.test.company.com and https://www.projectname.com.
    /// </summary>
    public class ExampleTestFixtureBase : SharePointTestFixture
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="ExampleTestFixtureBase"/> class.
        /// </summary>
        /// <remarks>Sets the site and web URL parameters to that of any site collection containing the word "lekman" within its host header.</remarks>
        public ExampleTestFixtureBase()
            : base("lekman") {}

        #region Methods

        #endregion

        #region Overrides of SharePointTestFixture

        /// <summary>
        /// Gets or sets the absolute URL of the <see cref="SharePointTestFixture.Site"/>.
        /// </summary>
        protected override string SiteUrl{get;set;}

        /// <summary>
        /// Gets or sets the server relative URL of the <see cref="SharePointTestFixture.Web"/>.
        /// </summary>
        protected override string WebUrl{get;set;}

        #endregion
    }
}